home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / menu-xdg.postinst < prev    next >
Encoding:
Text File  |  2010-01-17  |  1.4 KB  |  52 lines

  1. #! /bin/sh
  2. # postinst script for menu-xdg
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postinst> `configure' <most-recently-configured-version>
  10. #        * <old-postinst> `abort-upgrade' <new version>
  11. #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  12. #          <new-version>
  13. #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  14. #          <failed-install-package> <version> `removing'
  15. #          <conflicting-package> <version>
  16. # for details, see http://www.debian.org/doc/debian-policy/ or
  17. # the debian-policy package
  18. #
  19.  
  20. menu_spec=/etc/menu-methods/menu-xdg
  21. desktop_apps=/etc/menu-methods/xdg-desktop-entry-spec-apps
  22. desktop_dirs=/etc/menu-methods/xdg-desktop-entry-spec-dirs
  23. desktop_sessions=/etc/menu-methods/xdg-desktop-entry-spec-sessions
  24.  
  25. case "$1" in
  26.     configure)
  27.         if [ -f $menu_spec ]; then chmod a+x $menu_spec; fi
  28.         if [ -f $desktop_apps ]; then chmod a+x $desktop_apps; fi
  29.         if [ -f $desktop_dirs ]; then chmod a+x $desktop_dirs; fi
  30.         if [ -f $desktop_sessions ]; then chmod a+x $desktop_sessions; fi
  31.         if [ -x /usr/bin/update-menus ]; then update-menus; fi
  32.     ;;
  33.  
  34.     abort-upgrade|abort-remove|abort-deconfigure)
  35.  
  36.     ;;
  37.  
  38.     *)
  39.         echo "postinst called with unknown argument \`$1'" >&2
  40.         exit 1
  41.     ;;
  42. esac
  43.  
  44. # dh_installdeb will replace this with shell code automatically
  45. # generated by other debhelper scripts.
  46.  
  47.  
  48.  
  49. exit 0
  50.  
  51.  
  52.